//
//  InMemoryFile.h
//  FuseSQLite
//
//  Created by Admin on 6/22/14.
//  Copyright (c) 2014 Admin. All rights reserved.
//

#ifndef IN_MEMORY_FILE_H_
#define IN_MEMORY_FILE_H_

#include <vector>

class InMemoryFile
{
public:
    InMemoryFile(std::vector<char>* fileData);
    
    size_t read(char* buffer, size_t size, size_t offset);
    size_t write(const char* buffer, size_t size, size_t offset);
    
private:
    std::vector<char>* m_fileData;
};

#endif //IN_MEMORY_FILE_H_
